<template>
    <ui-main :title="$route.name">
        <div class="item one">
            <el-button @click="confirm('delete')" type="danger">删除</el-button>
            <el-button @click="confirm('submit')" type="primary">提交</el-button>
            <el-button @click="confirm('这里是自定义提示内容')">自定义</el-button>
        </div>
        <div class="item flex-5">
            <ui-load-md file="./httpConfirm.md"></ui-load-md>
        </div>
    </ui-main>
</template>
<script>
export default {
    methods:{
        confirm(cont){
            this.$bui.httpConfirm({
                url:'',
                content: cont,
                cancel:() => {
                    // 点击取消
                },
                success: () => {
                    // 点击确认
                    this.$message.success('已确认操作')
                }
            })
        }
    }
}
</script>
